![]() |
PBHSetDirAccessAsync |
||||
Header: | Files.h | Carbon status: | Supported | |
Changes the access control information for a directory.
OSErr PBHSetDirAccessAsync ( HParmBlkPtr paramBlock );
A pointer to an HFS parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion function.
On output, the result code of the function.
On input, a pointer to a pathname.
On input, a volume specification.
On input, the owner ID.
On input, the group ID.
On input, the directory’s access rights. You cannot set the owner or user rights bits of the ioACAccess field directly (if you try to do this, PBHSetDirAccessAsync returns the result code paramErr).
On input, the directory ID.
The PBHSetDirAccessAsync function allows you to change the access rights to the specified directory.
To change the owner or group, you should set the ioACOwnerID or ioACGroupID field to the appropriate ID. You must be the owner of the directory to change the owner or group ID. A guest on a server can manipulate the privileges of any directory owned by the guest.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)